package com.szcinda.fitness.persistence;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Entity
public class Trainee implements Serializable {
    @Id
    private String openId;
    @NotNull(message = "昵称不能为空")
    private String nickName;
    @NotNull(message = "头像不能为空")
    private String avatarUrl;
}
